﻿GroupListController = Backbone.Router.extend
    ({
        model: new GroupListModel(),
        view: null,

        initialize: function ()
        {
            this.view = new GroupListView();

            this.RenderProjects();

        },
        RenderProjects: function ()
        {
            this.model.ListProjects(jQuery.proxy(this.ListProjects_CallBack, this));
        },
        ListProjects_CallBack: function (data, ref)
        {
            this.view.RenderProjects(data);
        }
    });

var groupListcontroller = null;

$(document).ready(function ()
{
    groupListcontroller = new GroupListController();
});